package com.xiaoyi.cms;

import com.xiaoyi.cms.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/")
public class controller {
    @Autowired
    private CategoryService categoryService;
    @RequestMapping(value = "/")
    public List test()
    {
        return categoryService.getList();
        //return "123";
    }
}
